package org.dromara.study.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.io.Serial;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("course")
public class Course extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id")
    private Integer id;

    /**
     * 课程名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 课程描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 培训时间
     */
    @TableField(value = "course_time")
    private LocalDateTime courseTime;

}
